package com.mzpai.board.service.impl;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mzpai.board.mapper.StoreOrderMapper;
import com.mzpai.board.model.StoreOrder;
import com.mzpai.board.service.StoreOrderService;
import com.mzpai.service.impl.BaseServiceImpl;

@Service
public class StoreOrderServiceImpl extends BaseServiceImpl<StoreOrder> implements StoreOrderService  {

	@Autowired
	private StoreOrderMapper  mapper;
	
	protected Logger logger = LoggerFactory.getLogger(StoreOrderServiceImpl.class);
	
	/**
	 * 统计当天，按kindCode分组
	 * @param toDay
	 * @return
	 */
	@Override
	public List<StoreOrder> getListByDate(Map<String, Object> map) {
		return mapper.getListByDate(map);
	}

	/**
	 * 统计hour，按kindCode分组
	 * @param toDay
	 * @return
	 */
	@Override
	public List<StoreOrder> getListByHour(Map<String, Object> map) {
		return mapper.getListByHour(map);
	}

	
}
	